import os

import pytest

from common import sever_log, send_mail

if __name__ == '__main__':
    sever_log()
    pytest.main(['./test_case.py','-s','--alluredir=./xiaoma','--clean-alluredir'])
    os.system('allure generate ./xiaoma -o ./mqy --clean')
    send_mail(['HBHZ.txt','./mqy/index.html'])